<style>
    .td_lg{
        width: 300px;
    }
    .td_sm{
        width: 75px;
    }
    .td_md{
        width: 100px;
    }
    body,html{
        background-color: #F9F9F9;
    }
</style>
<script>
    {% if selected is defined %}
    var selected = {{ selected }};
    {% endif %}
    var grade = {{ grade | json_encode }};
</script>
{% if info is defined %}
    <script> var info = {{ info }}</script>
    {% else %}
        <script> var info = null;</script>
{% endif %}
<form  class="xh-form"  method="post"    style="margin-left: 20px;">
    <div class="xh-area-form">
        <table >
            <tr>
                <td class="td_sm"><label>总组长</label><input name="iLevel"  value="1" type="hidden"></td>
                <td class="td_md">
                    <select name="iChiefId">
                        <option value="">请选择</option>
                        {% for id,text in contacts %}
                            <option value="{{ id }}">{{ text }}</option>
                        {% endfor %}
                    </select>
                    <input name="iSBGId" type="hidden">
                    <input name="iSBLId" value="{{ iSBLId }}" type="hidden">
                    <input name="iParentId"  value="0" type="hidden">
                </td>
                {#<td class="td_sm"><label>筛选年级</label></td>#}
                {#<td class="td_md">#}
                    {#<select id="filerGrade">#}
                        {#<option value="">请选择</option>#}
                        {#{% for id,text in grade %}#}
                            {#<option value="{{ id }}">{{ text }}</option>#}
                        {#{% endfor %}#}
                    {#</select>#}
                {#</td>#}
                {#<td class="td_sm"><label>筛选学科</label></td>#}
                {#<td class="td_md">#}
                    {#<select id="filerSubject">#}
                        {#<option value="">请选择</option>#}
                        {#{% for id,text in subjects %}#}
                            {#<option value="{{ id }}">{{ text }}</option>#}
                        {#{% endfor %}#}
                    {#</select>#}
                {#</td>#}
        </table>
    </div>
</form>

<form  class="xh-form"  method="post" style="margin-left: 20px;">
    <div class="xh-area-form">
        <table >
            <tr>
                <td class="td_sm"><label>年级</label></td>
                <td class="td_md">
                    <select name="iGrade">
                        <option value="">请选择</option>
                        {% for id,text in grade %}
                            <option value="{{ id }}">{{ text }}</option>
                        {% endfor %}
                    </select>
                </td>
                <td class="td_sm"><label>学科</label></td>
                <td class="td_md">
                    <select name="iSubject">
                        <option value="">请选择</option>
                        {% for id,text in subjects %}
                            <option value="{{ id }}">{{ text }}</option>
                        {% endfor %}
                    </select>
                </td>
                <td class="td_sm"><label>小组长</label><input name="iLevel"  value="2" type="hidden"></td>
                <td class="td_md">
                    <select name="iChiefId">
                        <option value="">请选择</option>
                        {% for id,text in contacts %}
                            <option value="{{ id }}">{{ text }}</option>
                        {% endfor %}
                    </select>
                    <input name="iSBGId" type="hidden">
                    <input name="iSBLId" value="{{ iSBLId }}" type="hidden">
                </td>
                <td class="td_sm"><label>小组成员</label></td>
                <td class="td_lg">
                    <select name="sChargeIds[]" multiple="multiple">
                        {% for id,text in contacts %}
                            <option value="{{ id }}">{{ text }}</option>
                        {% endfor %}
                    </select>
                </td>
            </tr>
        </table>
    </div>
</form>
<form  class="xh-form"  method="post" style="margin-left: 20px;">
    <div class="xh-area-form">
        <table >
            <tr>
                <td class="td_sm"><label>年级</label></td>
                <td class="td_md">
                    <select name="iGrade">
                        <option value="">请选择</option>
                        {% for id,text in grade %}
                            <option value="{{ id }}">{{ text }}</option>
                        {% endfor %}
                    </select>
                </td>
                <td class="td_sm"><label>学科</label></td>
                <td class="td_md">
                    <select name="iSubject">
                        <option value="">请选择</option>
                        {% for id,text in subjects %}
                            <option value="{{ id }}">{{ text }}</option>
                        {% endfor %}
                    </select>
                </td>
                <td class="td_sm"><label>小组长</label><input name="iLevel"  value="2" type="hidden"></td>
                <td class="td_md">
                    <select name="iChiefId">
                        <option value="">请选择</option>
                        {% for id,text in contacts %}
                            <option value="{{ id }}">{{ text }}</option>
                        {% endfor %}
                    </select>
                    <input name="iSBGId" type="hidden">
                    <input name="iSBLId" value="{{ iSBLId }}" type="hidden">
                </td>
                <td class="td_sm"><label>小组成员</label></td>
                <td class="td_lg">
                    <select name="sChargeIds[]" multiple="multiple">
                        {% for id,text in contacts %}
                            <option value="{{ id }}">{{ text }}</option>
                        {% endfor %}
                    </select>
                </td>
            </tr>
        </table>
    </div>
</form>
<form  class="xh-form"  method="post" style="margin-left: 20px;">
    <div class="xh-area-form">
        <table >
            <tr>
                <td class="td_sm"><label>年级</label></td>
                <td class="td_md">
                    <select name="iGrade">
                        <option value="">请选择</option>
                        {% for id,text in grade %}
                            <option value="{{ id }}">{{ text }}</option>
                        {% endfor %}
                    </select>
                </td>
                <td class="td_sm"><label>学科</label></td>
                <td class="td_md">
                    <select name="iSubject">
                        <option value="">请选择</option>
                        {% for id,text in subjects %}
                            <option value="{{ id }}">{{ text }}</option>
                        {% endfor %}
                    </select>
                </td>
                <td class="td_sm"><label>小组长</label><input name="iLevel"  value="2" type="hidden"></td>
                <td class="td_md">
                    <select name="iChiefId">
                        <option value="">请选择</option>
                        {% for id,text in contacts %}
                            <option value="{{ id }}">{{ text }}</option>
                        {% endfor %}
                    </select>
                    <input name="iSBGId" type="hidden">
                    <input name="iSBLId" value="{{ iSBLId }}" type="hidden">
                </td>
                <td class="td_sm"><label>小组成员</label></td>
                <td class="td_lg">
                    <select name="sChargeIds[]" multiple="multiple">
                        {% for id,text in contacts %}
                            <option value="{{ id }}">{{ text }}</option>
                        {% endfor %}
                    </select>
                </td>
            </tr>
        </table>
    </div>
</form>
<form  class="xh-form"  method="post" style="margin-left: 20px;">
    <div class="xh-area-form">
        <table >
            <tr>
                <td class="td_sm"><label>年级</label></td>
                <td class="td_md">
                    <select name="iGrade">
                        <option value="">请选择</option>
                        {% for id,text in grade %}
                            <option value="{{ id }}">{{ text }}</option>
                        {% endfor %}
                    </select>
                </td>
                <td class="td_sm"><label>学科</label></td>
                <td class="td_md">
                    <select name="iSubject">
                        <option value="">请选择</option>
                        {% for id,text in subjects %}
                            <option value="{{ id }}">{{ text }}</option>
                        {% endfor %}
                    </select>
                </td>
                <td class="td_sm"><label>小组长</label><input name="iLevel"  value="2" type="hidden"></td>
                <td class="td_md">
                    <select name="iChiefId">
                        <option value="">请选择</option>
                        {% for id,text in contacts %}
                            <option value="{{ id }}">{{ text }}</option>
                        {% endfor %}
                    </select>
                    <input name="iSBGId" type="hidden">
                    <input name="iSBLId" value="{{ iSBLId }}" type="hidden">
                </td>
                <td class="td_sm"><label>小组成员</label></td>
                <td class="td_lg">
                    <select name="sChargeIds[]" multiple="multiple">
                        {% for id,text in contacts %}
                            <option value="{{ id }}">{{ text }}</option>
                        {% endfor %}
                    </select>
                </td>
            </tr>
        </table>
    </div>
</form>


<div><a id="addSubject" class="btn btn-default pull-right" style="margin-right: 42px">添加学科</a></div>
